package com.mcxx.modules.miniSalvation.special.service.read;

import com.mcxx.modules.base.utils.QueryParamUtil;
import com.mcxx.modules.miniSalvation.family.dto.SalvationObjectDTO;
import com.mcxx.modules.miniSalvation.special.dao.read.MemberSpecialSignReadDao;
import com.mcxx.modules.miniSalvation.special.dao.read.SpecialSignReadDao;
import com.mcxx.modules.miniSalvation.special.dto.SpecialSignDTO;
import com.mcxx.modules.miniSalvation.special.entity.MemberSpecialSignEntity;
import com.mcxx.modules.miniSalvation.special.entity.SpecialSignEntity;
import com.mcxx.modules.miniSalvation.special.param.SpecialSignParam;
import com.mcxx.util.DateUtil;
import com.yinhai.ta404.core.restservice.requestbean.PageParam;
import com.yinhai.ta404.core.restservice.resultbean.Page;
import com.yinhai.ta404.core.security.vo.UserAccountVo;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@TaTransactional
public class MemberSpecialSignReadService extends BaseService {
    @Autowired
    private MemberSpecialSignReadDao memberSpecialSignReadDao;




    public List<MemberSpecialSignEntity> getMemberSpecialSign(String idcard){return memberSpecialSignReadDao.getMemberSpecialSign(idcard);}

    public Page getAuditSpecialSignList(SpecialSignParam param, PageParam pageParam) {
        memberSpecialSignReadDao.beginPager(pageParam);
        List<SpecialSignDTO> list = memberSpecialSignReadDao.getAuditSpecialSignList(param);
        return memberSpecialSignReadDao.endPager(list);
    }

    public List<MemberSpecialSignEntity> getMemberSpecialSignEdit(String idcard,String status){return memberSpecialSignReadDao.getMemberSpecialSignEdit(idcard,status);}

    public Page getConfirmSpecialSignList(SpecialSignParam param, PageParam pageParam) {
        memberSpecialSignReadDao.beginPager(pageParam);
        List<SpecialSignDTO> list = memberSpecialSignReadDao.getConfirmSpecialSignList(param);
        return memberSpecialSignReadDao.endPager(list);
    }

}
